package com.atguigu.weixin.model;

/**
 * 微信 响应消息排重
 * @author Administrator
 *
 */
public class DuplicateMessage {
   private String fromUserName;//控制排重对象
   private String createTime;//控制排重对象
	private Long curTime;//控制排重时间
	private String rel;//返回的字符串
public DuplicateMessage(String fromUserName, String createTime) {
	super();
	this.fromUserName = fromUserName;
	this.createTime = createTime;
	this.curTime = System.currentTimeMillis();
	this.rel = null;
}
public String getFromUserName() {
	return fromUserName;
}
public void setFromUserName(String fromUserName) {
	this.fromUserName = fromUserName;
}
public String getCreateTime() {
	return createTime;
}
public void setCreateTime(String createTime) {
	this.createTime = createTime;
}
   
public Long getCurTime() {
	return curTime;
}
public void setCurTime(Long curTime) {
	this.curTime = curTime;
}
public String getRel() {
	return rel;
}
public void setRel(String rel) {
	this.rel = rel;
}
@Override
	public boolean equals(Object obj) {
		 DuplicateMessage dm=(DuplicateMessage)obj;
		 if(dm.getCreateTime().equals(this.getCreateTime())&&(dm.getFromUserName().equals(this.getFromUserName()))){
			 return true;
		 }
		return false;
	}
}
